package com.example.kotlinpractice.compare

import androidx.recyclerview.widget.RecyclerView

/**
 * 多个RecyclerView联动滚动时，监听[ScrollDispatcher]派发的滚动事件，进行同步滚动
 */
interface ScrollListener {
    /**
     * @see[ScrollDispatcher.dispatchScroll]
     */
    fun onScrolled(scrollSource: RecyclerView, dx: Int, dy: Int, totalScrolledX: Int, totalScrolledY: Int)
}